package net.jkdmanager.agent.model;

import net.jkdmanager.common.api.model.Application;
import net.jkdmanager.common.api.plugins.AppInfoI;

public class ApplicationInfoImpl implements AppInfoI {
	
	private Application application;
	
	public ApplicationInfoImpl(Application application) {
		this.application = application;
	}

	public long getAppId() {
		return application.getId();
	}

	public String getDistributorProperty(String key) {
		return application.getDistributor().getProperties().get(key);
	}
	
	public String getRunnerProperty(String key) {
		return application.getRunner().getProperties().get(key);
	}
	
	public String getDirectorProperty(String key) {
		return application.getDirector().getProperties().get(key);
	}

}
